Skip to content

docs(rtl): clarify subtree layout mirroring and LocaleProvider scope - #5244

Closed
Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:docs/rtl-subtree-layout
Closed

Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:docs/rtl-subtree-layout

Conversation

@Priyanshu0007

@Priyanshu0007 Priyanshu0007 commented Nov 19, 2026 •

Copy link
Copy Markdown

Summary

Clarifies the "Overriding direction for a subtree" section in the RTL guide.

LocaleProvider updates what Paper treats as writing direction (text alignment, directional icons), but does not alter flex layout direction by itself. This PR documents how to mirror subtree layout across platforms:

  • Web: Wrap subtree in View with dir="rtl"
  • iOS: Wrap subtree in View with style={{ direction: 'rtl' }}
  • Android: Note that React Native does not support mixed-direction subtrees

Fixes #5243

Test plan

  1. Read docs/6.x/docs/guides/rtl.md.
  2. Verify formatting and code snippet clarity.

Screenshots

Before After
before after

@Doberjohn

Copy link
Copy Markdown
Collaborator

This PR pointed at a real gap: on web a LocaleProvider subtree didn't lay out in its own direction. #5255 fixed that in code, so the guide no longer needs the dir wrapper, and the "Overriding direction for a subtree" section now says that on Android and iOS I18nManager sets the layout for the whole app. Closing as covered. If you can show the direction style mirroring a subtree on iOS or Android in a recording, a short follow-up for native would be welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RTL guide: LocaleProvider on a subtree doesn't mirror its layout

2 participants